import Vue from 'vue'
import App from './App.vue'
import router from './router/main.js'
import store from './store'
import filters from './filters'
import Vant from 'vant';
import FastClick from 'fastclick'; // 引入插件

Vue.config.productionTip = false

//  开启调试
// if (process.env.NODE_ENV == 'development') {
    var VConsole = require('vconsole/dist/vconsole.min.js');
    var vConsole = new VConsole();
// }

// 全局过滤器
Object.keys(filters).forEach(filterName => {
    Vue.filter(filterName, filters[filterName])
})

FastClick.attach(document.body); // 使用 fastclick
Vue.use(Vant);
import 'vant/lib/index.css';
new Vue({
	router,
	store,
	render: h => h(App)
}).$mount('#app')
